package cn.tedu.egweibo04.base.response;

public enum StatusCode {
    NOT_LOGIN(1000,"用户未登录"),
    PASSWORD_ERROR(1001,"密码错误"),
    USERNAME_ERROR(1002,"用户名错误"),
    USERNAME_OCCUPIED(1003,"用户名已被占用"),
    PUBLISH_FAILED(1004,"用户未登录，发布失败"),
    COMMENT_FAILED(1005,"用户未登录，评论失败"),
    OPERATION_SUCCESS(2001,"操作成功"),
    OPERATION_FAILED(2002,"操作失败");
    private Integer state;
    private String message;

    StatusCode(Integer state, String message) {
        this.state = state;
        this.message = message;
    }

    public Integer getState() {
        return state;
    }

    public String getMessage() {
        return message;
    }
}
